import request from '@/utils/request'

// 其他收入开始
export function getIncomes(query){
  return request({
    url: '/finance/income/',
    method: 'GET',
    params: query
  })
}

export function addIncome(incomeInfo){
  return request({
    url: '/finance/income/',
    method: 'POST',
    data: incomeInfo
  })
}

export function updateIncome(incomeInfo){
  return request({
    url: `/finance/income/${incomeInfo.id}/`,
    method: 'PATCH',
    data: incomeInfo
  })
}

export function delIncome(income_id){
  return request({
    url: `/finance/income/${income_id}/`,
    method: 'DELETE',
  })
}

// 其他收入结束
